//
//  LoginModel.h
//  RainbowFM
//
//  Created by chenli on 14/12/17.
//  Copyright (c) 2014年 RB. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface LoginModel : NSObject

+(instancetype)sharedModel;

@property (nonatomic,strong) NSString *token;
@property (nonatomic,strong) NSString *userID;

-(void)fetchSecurityCodeWithPhoneNum:(NSString *)phoneNum result:(void(^)(BOOL success,NSString *msg))res;

-(void)verifyPhoneNumAndCode:(NSString *)code phoneNum:(NSString *)phoneNum result:(void(^)(BOOL success,NSString *code,NSString *msg))res;

-(void)registerWithPhoneNum:(NSString *)phoneNum smsCode:(NSString *)code password:(NSString *)pwd verifyPassword:(NSString *)verifyPwd result:(void(^)(BOOL success,NSString *msg))res;

-(void)loginWithPhoneNum:(NSString *)phoneNum password:(NSString *)pwd result:(void(^)(BOOL success,NSString *msg))res;

@end
